package com.zhl.study.annotation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @description TODO
 * @Author: z156940l@outlook.com
 * @className ArrayVal
 * @Date: 2023/4/28 14:40
 */
@Documented
@Constraint(validatedBy = {MyConstraintValidator.class})
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER, ElementType.TYPE_USE})
public @interface ArrayVal {
    String message() default "{javax.validation.constraints.ArrayVal.message}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

    int[] value() default {};
}
